package com.ln.common;
/**
 * 邮箱地址格式验证
 * @author LINING
 */
public class EmailValidator {
	public static final String emailAddressPattern =
	    	"\\b(^['_A-Za-z0-9-]+(\\.['_A-Za-z0-9-]+)*@([A-Za-z0-9-])+(\\.[A-Za-z0-9-]+)*((\\.[A-Za-z0-9]{2,})|(\\.[A-Za-z0-9]{2,}\\.[A-Za-z0-9]{2,}))$)\\b";
	public static boolean contrast(final String emailString) {
		return emailString.matches(emailAddressPattern);
	}
}
